package com.campus.web.controller;


import com.campus.app.service.WxIndexImageTypesService;
import com.campus.app.service.WxIndexImagesService;
import com.campus.commons.entity.WxIndexImageType;
import com.campus.commons.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.PostConstruct;
import javax.validation.Valid;

/**
 * <p>
 * 轮播页面类型表 前端控制器
 * </p>
 *
 * @author Rin
 * @since 2021-01-30
 */
@RestController
@RequestMapping("/index-image-type")
public class WxIndexImageTypeController {
@Autowired
private WxIndexImageTypesService typesService;
    @PostMapping("/add")
    public Result addIndexImageType(@Valid WxIndexImageType wxIndexImageType) {
        return typesService.addIndexImageType(wxIndexImageType);
    }
}

